import request from '@/utils/request'

export function getCatalogues(query) {
  return request({
    url: '/supply/catalogue/getList',
    method: 'post',
    data: query
  })
}

export function getCatalogue(id) {
  return request({
    url: '/supply/catalogue/getDetail',
    method: 'post',
    data: id
  })
}
export function changeStatusByCatalogueID(id) {
  return request({
    url: '/supply/catalogue/change-status',
    method: 'post',
    data: id
  })
}

export function saveCatalogue(formdata) {
  return request({
    url: '/supply/catalogue/save',
    method: 'post',
    data: formdata
  })
}

export function removeCatalogueByID(id) {
  return request({
    url: '/supply/catalogue/remove',
    method: 'post',
    data: id
  })
}

export function getCataloguesAvabile() {
  return request({
    url: '/supply/catalogue/getAvailable',
    method: 'post'
  })
}
